package com.tqjc.system.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @description:
 * @Author: 86195
 * @Date: 2024/1/4 10:49
 **/
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum AlarmStatusEnum {

    ALARM_STATUS_DOING("doing","处理中"),
    ALARM_STATUS_INIT("init","未处理"),
    ALARM_STATUS_ERROR("error","失败"),
    ALARM_STATUS_DONE("done","已处理");


    private String status;


    private String desc;


    public static String getDescByStatus(String status){

        for (AlarmStatusEnum value : AlarmStatusEnum.values()) {
            if(value.getStatus().equals(status)){
                return value.desc;
            }

        }
        return "未知状态";
    }

}
